{"ast":null,"code":"import * as React from 'react';\nexport default function useDebounce(value) {\n  const [cacheValue, setCacheValue] = React.useState(value);\n  React.useEffect(() => {\n    const timeout = setTimeout(() => {\n      setCacheValue(value);\n    }, value.length ? 0 : 10);\n    return () => {\n      clearTimeout(timeout);\n    };\n  }, [value]);\n  return cacheValue;\n}","map":{"version":3,"names":["React","useDebounce","value","cacheValue","setCacheValue","useState","useEffect","timeout","setTimeout","length","clearTimeout"],"sources":["/data/messenger.client/node_modules/antd/es/form/hooks/useDebounce.js"],"sourcesContent":["import * as React from 'react';\nexport default function useDebounce(value) {\n  const [cacheValue, setCacheValue] = React.useState(value);\n  React.useEffect(() => {\n    const timeout = setTimeout(() => {\n      setCacheValue(value);\n    }, value.length ? 0 : 10);\n    return () => {\n      clearTimeout(timeout);\n    };\n  }, [value]);\n  return cacheValue;\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,eAAe,SAASC,WAAW,CAACC,KAAK,EAAE;EACzC,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGJ,KAAK,CAACK,QAAQ,CAACH,KAAK,CAAC;EACzDF,KAAK,CAACM,SAAS,CAAC,MAAM;IACpB,MAAMC,OAAO,GAAGC,UAAU,CAAC,MAAM;MAC/BJ,aAAa,CAACF,KAAK,CAAC;IACtB,CAAC,EAAEA,KAAK,CAACO,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;IACzB,OAAO,MAAM;MACXC,YAAY,CAACH,OAAO,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EACX,OAAOC,UAAU;AACnB"},"metadata":{},"sourceType":"module"}